// Package logicConfig -----------------------------
// @file      : ChooseCard.go
// @author    : WuZhouHai
// @contact   : wzh200x@126.com
// @time      : 2024/3/5 17:04
// @desc      :
// -------------------------------------------
package gameConfig

import (
	"github.com/gogf/gf/v2/container/garray"
	"github.com/gogf/gf/v2/container/gmap"
)

type CardConfigAnalysis struct {
	FixedCards      gmap.IntIntMap // 固定次数
	RangeCards      garray.Array   //  范围次数
	FixedCardsTotal gmap.IntIntMap // 固定总次数
	RangeCardsTotal garray.Array   //  范围总次数
}

type ChooseCard struct {
	Id                int32  `json:"id"`
	Name              string `json:"name"`
	ChooseNormal      string `json:"chooseNormal"`
	TenChoose         int32  `json:"tenChoose"`
	TenDrop           int32  `json:"tenDrop"`
	MinChoose         int32  `json:"minChoose"`
	MaxChoose         int32  `json:"maxChoose"`
	FloorsMin         int32  `json:"floorsMin"`
	FloorsMax         int32  `json:"floorsMax"`
	ChooseNormalTotal string `json:"chooseNormalTotal"`
	Desc              string `json:"desc"`
}

type ChooseRange struct {
	Min           int32
	Max           int32
	ChooseGroupId int32
}

func NewChooseRange(min int32, max int32, chooseGroupId int32) *ChooseRange {
	return &ChooseRange{
		Min:           min,
		Max:           max,
		ChooseGroupId: chooseGroupId,
	}
}
